<template>
  <div class="home">
    <h1>欢迎使用待办事项应用</h1>
    <p>一个使用Vue.js和Node.js构建的简单记事本应用</p>
    
    <div class="button-group">
      <router-link to="/login" class="btn btn-primary">登录</router-link>
      <router-link to="/register" class="btn btn-secondary">注册</router-link>
    </div>
  </div>
</template>

<style scoped>
.home {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #34495e;
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-primary {
  background-color: #42b983;
  color: white;
}

.btn-primary:hover {
  background-color: #3aa876;
}

.btn-secondary {
  background-color: #606c76;
  color: white;
}

.btn-secondary:hover {
  background-color: #4e5961;
}
</style> 